import './assets/base.css'

import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import http from './utils/http';

import App from './App.vue'
import router from './router'

const app = createApp(App)

app.use(router)

app.use(ElementPlus, {size: 'default', locale: zhCn})
//注册字体图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.config.globalProperties.$http = http;

app.mount('#app')
